import React from 'react'
import { Outlet, Link, useHref, useLocation, useParams } from 'react-router-dom'


export default function Index() {
  let url = useHref();
  // console.log(url)
  let res = useLocation();
  // console.log(res);
  let p = useParams();
  console.log(p);
  return (
    <div>
      <h1>我是admin组件{url}</h1>
      <Link to="/admin/coma">跳转到admin下的coma组件</Link>
      <Link to="/admin/comb">跳转到admin下的comb组件</Link>
      <Outlet />
    </div>
  )
}
